<?php
if (!defined('INDEX')) {
	exit ('Access Denied');
}
//取消注册，这个站没有登录这一说了 yjmp
$url = 'index.php';
Header("Location: $url");
$parameter=act_wap_login();
extract($parameter);

if($_GET['web']){
	$web=$_GET['web'];
	$webid=$_GET['webid'];
	$webname=$_GET['webname'];
}

include(TPLPATH.'/inc/header_3.tpl.php');
?>
<script>
function cbCheckForm(input,$form){
	var url='<?=wap_l(MOD,ACT)?>';
	url=ddJoin(url,input);
	$('#tijiao').val('提交中...');
	$.ajax({
		url: url,
		dataType:'jsonp',
		jsonp:"callback",
		success: function(data){
			if(data.s==1){
				ddAlert('登录成功','<?=$from?>');
			}
			else{
				getYzm();
				alert(data.r);
				$('#tijiao').val('登录');
			}
		}
	});
	return false;
}

function getYzm(){
	$('#yzmimg').attr('src','<?=CURURL?>/comm/showpic.php?easy=1&t='+time());
}
</script>

 <div class="register">
 <form onSubmit="return checkForm($(this),cbCheckForm)">
<table border="0" align="left" cellpadding="0" cellspacing="0" bordercolorlight="#9acd32" width="100%">
 
		<tr height="40">
		  <td><input id="username" name="username" class="ddinput_yhm" placeholder="请输入用户名/邮箱" dd-required type="text" /></td>
		</tr>
		<tr height="40">
		  <td><input id="password" name="password" value="" class="ddinput_mima" placeholder="请输入您的密码" dd-required type="password"></td>
		</tr>

      <tr height="40">
		  <td height="80" colspan="2"> <input type="hidden" name="sub" value="1" /><input type="submit" id="tijiao" value="马上登录" class="register_dl"/>
		  </td>                       
		  </tr>
		
    </table>
</form>
</div>
  <div class="p15">
 <span style="float:left; font-size:14px; color:#888"><a href="<?=wap_l('user','mima')?>"><div class="mima"></div>忘记密码</a></span> 
	  <span style="float:right; margin-right:6px; font-size:14px;color:#888"><a href="<?=wap_l('user','register')?>"><div class="zhuce"></div>10秒免费注册</a></span>
    
  <div class="h30"></div>
	<?php if(!empty($dd_tpl_data['apilogin'])){?>
<section class="other_login">
   <h4>——————  使用合作账号登录  ——————</h4>
 <?php if(isset($dd_tpl_data['apilogin']['qq']) && $dd_tpl_data['apilogin']['qq']==1){?>
 <li><a href="<?=wap_l('user','weblogin',array('a'=>'qq','action'=>urlencode($from)))?>" title="QQ账号登录" class="qq"></a></li>
  <?php }?>
   <?php if(isset($dd_tpl_data['apilogin']['tb']) && $dd_tpl_data['apilogin']['tb']==1){?>
  <li><a href="<?=wap_l('user','weblogin',array('a'=>'tb','action'=>urlencode($from)))?>" title="淘宝账号登录" class="tb"></a></li>
  <?php }?>
<?php if(isset($dd_tpl_data['apilogin']['sina']) && $dd_tpl_data['apilogin']['sina']==1){?>
 <li><a href="<?=wap_l('user','weblogin',array('a'=>'sina','action'=>urlencode($from)))?>" title="新浪账号登录" class="sina"></a></li>
  <?php }?>
</section>
<?php }?>
     </div>  
 <div class="clear"></div> 
  
  
<?php include(TPLPATH.'/inc/footer.tpl.php');?>